-module(ta_log_test).
-export([start/0, stop/0]).

start() ->
   ta_log:start_link(),
   loop().
   
loop() ->
   receive 
      stop -> stop 
      after 1000 ->
	     Time = msg_time(),
         ta_log:error("now is ~p", [Time]),
		 loop()
   end.		 
   
stop() ->
   ta_log:stop().
   
 msg_time() ->
    {_, {H,M,S}} = calendar:local_time(),
	lists:flatten(io_lib:format("~2.2.0w:~2.2.0w:~2.2.0w", [H, M, S])).